<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let arr = [1,2,3,4]
        // let iterator = arr[Symbol.iterator]()
        // let iterator = arr.entries()
        // console.log(iterator.next())
        // console.log(iterator.next())
        // console.log(iterator.next())
        // console.log(iterator.next())
        // console.log(iterator.next())

        let arr = ["张三","lisi","王五"]
        let keys = arr.keys()
        console.log(keys)
        for (let val of keys) {
            console.log(val)
        }
        let values = arr.values()
        console.log(values)
        for (let item of values) {
            console.log(item)
        }




    </script>
</body>
</html>